package com.simple.gateway.sdk.annotation;

import java.lang.annotation.*;

/**
 * 项目: simple-gateway-core
 *
 * 功能描述:
 *
 * @author: WuChengXing
 *
 * @create: 2023-08-09 17:51
 **/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface ApiProducerMethod {

    /**
     * 方法名称
     * @return
     */
    String methodName() default "";

    /**
     * 访问路径；/test/sayHi
     * @return
     */
    String uri() default "";

    /**
     * 接口类型；GET、POST、PUT、DELETE
     * @return
     */
    String httpCommandType() default "GET";

    /**
     * 是否认证；true = 1是、false = 0否
     * @return
     */
    int auth() default 0;
}
